// import requestApi from "@/utils/api.requestApi"
import {requestApi} from "@/axios"

const Api = {
    getRouterlist: "/app/router/list",
    getUserRouter: "/user/router/list",
    addRouter: "/app/router/add",
    updateRouter: "/app/router/update",
    addGoods: "/app/goods/add",
    getGoods: "/app/goods/list",
    getGood: "/app/goods/index",
}

//@example
export let getRouterlist = data => requestApi.get(Api.getRouterlist, data);
export let addRouter = data => requestApi.post(Api.addRouter, data);
export let getUserRouter = data => requestApi.get(Api.getUserRouter, data);
export let updateRouter = data => requestApi.post(Api.updateRouter, data);

export let addGoods = data => requestApi.post(Api.addGoods, data);
export let getGoods = data => requestApi.get(Api.getGoods, data);
export let getGood = data => requestApi.get(Api.getGood, data);